<div class="filters">
    <label class="marginBtn">Sortuj</label><div class="clearfix"></div>
    <select class="form-control filterSize">
        <option>A-Z</option>
        <option>Z-A</option>
        <option>Najniższa cena</option>
        <option>Najwyższa cena</option>
        <option>Od najnowszych</option>
        <option>Od najstarszych</option>
        <option>Najczęściej kupowane</option>
    </select>   

    <label class="marginBtn">Rozmiar</label><div class="clearfix"></div>
    <select class="form-control filterSize">
        <option>23</option>
        <option>24</option>
        <option>25</option>
        <option>26</option>
        <option>27</option>
        <option>28</option>
        <option>29</option>
        <option>30</option>
        <option>31</option>
        <option>32</option>
        <option>33</option>
        <option>34</option>
        <option>35</option>
        <option>36</option>
        <option>37</option>
        <option>38</option>
        <option>39</option>
        <option>40</option>
        <option>41</option>
        <option>42</option>
        <option>43</option>
        <option>44</option>
        <option>45</option>
        <option>46</option>
        <option>47</option>
        <option>48</option>
        <option>49</option>
        <option>50</option>
    </select>
    <label class="marginBtn">Gatunek</label> <div class="clearfix"></div>
    <select class="form-control filterSize">

    </select>   
    <label class="marginBtn">Specjalne</label> <div class="clearfix"></div>
    <input type="checkbox"> prmocja <div class="clearfix"></div>
    <input type="checkbox"> nowość <div class="clearfix"></div>
    <input type="checkbox"> wyprzedaż <div class="clearfix"></div>
    <button type="submit" class="btn btn-primary marginBtn marginLeft">Filtruj</button>

</div>

 <div class="productsBar">
    <div class="productsBarName">
        <?php echo $type; ?>
    </div>
    
</div>

<div class="siteProducts">
    <?php if(count($products) > 0): ?>
        <?php foreach($products as $product): ?>
            <a href="<?php echo url_for('@product?id=' . $product->getId()); ?>">
            <div class="siteProductBox">
                    <img class="siteProductImg" src="/uploads/images/<?php echo $product->getImage(); ?>"/>
                <div class="siteProductText">
                    <?php echo $product->getName(); ?>
                </div>
                <div class="siteProductPrice">
                    <?php echo $product->getPrice(); ?> zł
                </div>
            </div></a>
        <?php endforeach; ?>
    <?php else: ?>
    <h3>Nie znaleziono żadnego produktów w podanej kategorii.</h3>
    <?php endif; ?>
    <nav>

    </nav>
</div>
